﻿#include "CmdSetHeatMapRenameFinished.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapRenameFinished::CmdSetHeatMapRenameFinished()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapRenameFinished::~CmdSetHeatMapRenameFinished()
    {
    }

    bool CmdSetHeatMapRenameFinished::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapRenameFinished(m_windowId, m_name);
        return true;
    }

    void CmdSetHeatMapRenameFinished::undo()
    {
    }

    void CmdSetHeatMapRenameFinished::redo()
    {
        // execute();
    }

    void CmdSetHeatMapRenameFinished::setHeatMapRenameFinished(int windowId, QString name)
    {
        m_windowId = windowId;
		m_name = name;
    }

} // namespace PostCommand
